package org.dromara.solonplugins.activerecord.test1;

import java.util.List;

import org.dromara.solonplugins.activerecord.annotation.Db;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.noear.solon.test.SolonJUnit5Extension;
import org.noear.solon.test.SolonTest;

import com.jfinal.plugin.activerecord.Record;

@ExtendWith(SolonJUnit5Extension.class)
@SolonTest(TestApp1.class)
public class DemoAppTest1 {
	
	@Db("db1")
	private com.jfinal.plugin.activerecord.DbPro db;
	
	@Test
	public void test() {
		List<ImportFile> list = new ImportFile().findAll();
		System.out.println(list.size());
		List<Record> l = db.template("query_test", "12345").find();
		System.out.println(l.size());
	}

}
